.workplace-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 40rpx;
}

.custom-nav {
  background: white;
  border-bottom: 1rpx solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  
  .nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30rpx;
    height: 88rpx;
  }
  
  .nav-title {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
  }
}

/* 登录提示 */
.login-prompt {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60rpx;
  
  .login-card {
    background: white;
    border-radius: 20rpx;
    padding: 80rpx 60rpx;
    text-align: center;
    box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500rpx;
    
    .login-icon {
      width: 120rpx;
      height: 120rpx;
      margin-bottom: 40rpx;
    }
    
    .login-title {
      display: block;
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
      margin-bottom: 20rpx;
    }
    
    .login-desc {
      display: block;
      font-size: 28rpx;
      color: #999;
      margin-bottom: 60rpx;
    }
    
    .login-btn {
      background: #5cb85c;
      color: white;
      border-radius: 50rpx;
      font-size: 32rpx;
      padding: 24rpx 80rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
  }
}

/* 主要内容 */
.main-content {
  padding: 20rpx;
}

/* 店铺状态卡片 */
.status-card {
  background: white;
  border-radius: 20rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30rpx;
    
    .status-info {
      flex: 1;
      
      .merchant-name {
        display: block;
        font-size: 36rpx;
        font-weight: bold;
        color: #333;
        margin-bottom: 10rpx;
      }
      
      .status-text {
        font-size: 28rpx;
        padding: 8rpx 16rpx;
        border-radius: 20rpx;
        
        &.status-open {
          background: #e8f5e8;
          color: #5cb85c;
        }
        
        &.status-closed {
          background: #ffebee;
          color: #f44336;
        }
      }
    }
  }
  
  .order-mode {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .mode-info {
      .mode-label {
        display: block;
        font-size: 28rpx;
        color: #666;
        margin-bottom: 8rpx;
      }
      
      .mode-text {
        font-size: 30rpx;
        color: #333;
        font-weight: 500;
      }
    }
  }
}

/* 数据统计 */
.stats-section {
  background: white;
  border-radius: 20rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 30rpx;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rpx;
    
    .stat-item {
      text-align: center;
      padding: 20rpx;
      
      .stat-number {
        display: block;
        font-size: 48rpx;
        font-weight: bold;
        color: #333;
        margin-bottom: 10rpx;
      }
      
      .stat-label {
        display: block;
        font-size: 24rpx;
        color: #999;
        margin-bottom: 8rpx;
      }
      
      .stat-trend {
        font-size: 24rpx;
        
        &.trend-up {
          color: #5cb85c;
        }
        
        &.trend-down {
          color: #f44336;
        }
      }
    }
  }
}

/* 销售趋势 */
.trend-section {
  background: white;
  border-radius: 20rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30rpx;
    
    .section-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
    }
    
    .trend-detail-btn {
      font-size: 24rpx;
      color: #5cb85c;
      background: none;
      border: none;
      padding: 0;
      
      &::after {
        border: none;
      }
    }
  }
  
  .trend-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200rpx;
    
    .chart-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      
      .chart-label {
        font-size: 20rpx;
        color: #999;
        margin-bottom: 10rpx;
      }
      
      .chart-bar {
        width: 30rpx;
        background: linear-gradient(to top, #5cb85c, #7cc87c);
        border-radius: 15rpx 15rpx 0 0;
        margin-bottom: 10rpx;
        min-height: 10rpx;
      }
      
      .chart-value {
        font-size: 20rpx;
        color: #666;
        font-weight: bold;
      }
    }
  }
}

/* 快捷操作 */
.actions-section {
  background: white;
  border-radius: 20rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 30rpx;
  }
  
  .actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30rpx;
    
    .action-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      
      .action-icon {
        position: relative;
        width: 80rpx;
        height: 80rpx;
        border-radius: 20rpx;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20rpx;
        
        image {
          width: 40rpx;
          height: 40rpx;
        }
        
        .action-badge {
          position: absolute;
          top: -10rpx;
          right: -10rpx;
          background: #f44336;
          color: white;
          border-radius: 50rpx;
          font-size: 20rpx;
          min-width: 32rpx;
          height: 32rpx;
          line-height: 32rpx;
          text-align: center;
        }
      }
      
      .action-label {
        font-size: 24rpx;
        color: #666;
      }
    }
  }
}

/* 待办任务 */
.tasks-section {
  background: white;
  border-radius: 20rpx;
  padding: 32rpx;
  box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
  
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin-bottom: 30rpx;
  }
  
  .task-list {
    .task-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30rpx 0;
      border-bottom: 1rpx solid #f0f0f0;
      
      &:last-child {
        border-bottom: none;
      }
      
      .task-info {
        flex: 1;
        
        .task-title {
          display: block;
          font-size: 30rpx;
          color: #333;
          margin-bottom: 8rpx;
        }
        
        .task-desc {
          font-size: 24rpx;
          color: #999;
        }
      }
      
      .task-count {
        background: #5cb85c;
        color: white;
        border-radius: 50rpx;
        font-size: 24rpx;
        min-width: 48rpx;
        height: 48rpx;
        line-height: 48rpx;
        text-align: center;
        font-weight: bold;
      }
    }
  }
}

/* 响应式适配 */
@media screen and (max-width: 750rpx) {
  .actions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20rpx !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    
    .stat-item:last-child {
      grid-column: span 2;
    }
  }
}